package Homeworks.HOMEWORK0302;

public class Phone {
    public String name;
    public long num;

    public void call(String name,long num){
        System.out.println(name+"call"+num);
    }

    public Phone(){}
    private Phone(String name){
        this.name=name;
    }
    public Phone(long num){
        this.num=num;
    }
    public Phone(String name,long num){
        this.name=name;
        this.num=num;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setNum(long num) {
        this.num = num;
    }
}
